/* 全局样式 */
/* 因为很多标签默认设置内外边距 */
*{margin: 0px; padding: 0px;}
/* 默认是以基线对齐，会有不平 */
img{vertical-align: bottom;}
/* 默认a有下划 */
a{text-decoration: none;}
/* 列表标 li 默认样式不占像素空间，会影响其它元素*/
li{list-style: none;}

body{
	padding-bottom: 200px;
}


/* 头部样式 */
header{
	/* width: 100%; */
	height: 56px;
	background: #25292E;
}

.header{
	width: 1000px;
	height: 56px;
	margin: 0 auto;
	/* background-color: gray; */
	/* 父级设置 flex */
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 999;
}
/* logo样式 */
.logo{
	width: 96px;
	height: 45px;
	background: url(../img/icon.png);
	/* 设置透明 */
	opacity: 0.7;
	/* 过渡动画 */
	transition: 0.5s;
}
.logo:hover{
	opacity: 1;
}
/* 头部右侧导航栏样式 */
.nav-r{
	height: 56px;
	/* background-color: orange; */
	/* 设置为flex 布局 */
	display: flex;
	align-items: center;
}
.nav-r>li{
	font-size: 12px;
}
/* 登录 注册样式 */
.login, .register{
	margin-right: 16px;
}
.login>a, .register>a{
	color: #ccc;
}
.nav-r .nav-line{color: #666; font-size: 10px;}
/* 购物车消息样式 */
.cart,.message{
	height: 56px;
	color: #666;
	padding: 0 16px;
	position: relative;
}
.cart>p,.message>p{
	line-height: 56px;
}
/* 添加良品和资质证照/协议规则 样式 */
.agreement>a, .add-product>a{
	color: #666;
	margin-left: 16px;
}

/* 鼠标移入效果 */
.nav-r>li:hover{color: #ccc;}
.nav-r>li:hover a{color: #ccc;}
.cart:hover, .message:hover{
	background: #3F474E;
}

/* 购物车子菜单样式 */
.cart-subnav{
	width: 320px;
	background-color: #3F474E;
	position: absolute;
	left: 0;
	top: 56px;
	display: none;
	z-index: 998;
}
/* 鼠标移入购物，显示购物车子菜单 */
.cart:hover .cart-subnav{
	display: block;
}

/* 购物车内容样式 未登录 内部无商品信息*/
.cart-msg{
	height: 70px;
	font-size: 12px;
	line-height: 70px;
	text-align: center;
}

/* 购物车内容样式 登录 内部有商品信息 */
.cart-list{}

.cart-list li.goods{
	padding: 12px;
	display: flex;
	border-bottom: 1px solid #666;
}
/* 商品图片样式 */
.goods>a>img{
	width: 64px;
	height: 64px;
	margin-right: 10px;
}
.goods>div{
	flex: 1;
	font-size: 12px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #ccc;
}
.goods p:nth-of-type(1){
	color: #666;
}
.goods p:nth-of-type(3){
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
/* 选中商品信息的第三个<p>标签的最后一个元素，修改样式 */
.goods p:nth-of-type(3) :last-child{
	color: #666;
	text-decoration: line-through;
}
/* 鼠标移在商品信息上改变背景颜色 */
.cart-list li:hover{
	background-color: #292F34;
}

/* 购物车下方按钮 */
.cart-btn{
	font-size: 12px;
	height: 45px;
	background-color: rgb(125,191,222);
	color: white;
	line-height: 45px;
	text-align: center;
}
/* 购物车下方按钮鼠标移入样式 */
.cart-btn:hover{
	background-color: #96C8E0;
}

/* 消息子菜单样式 */
.message-list{
	width: 210px;
	background-color: #3F474E;
	position: absolute;
	left: -75px;
	top: 56px;
	display: none;
	z-index: 998;
}
/* 鼠标移入消息 显示消息子菜单 */
.message:hover .message-list{
	display: block;
}

/* 给消息子菜单设置弹性布局 */
.message-subnav{
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.message-list li{
	padding: 12px;
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid #666;
}


/* 导航样式 */
nav{
	width: 1000px;
	height: 45px;
	border-bottom: 4px solid #EDEDED;
	margin: 0 auto;
	display: flex;
	position: relative;
}
nav>ul{
	display: flex;
	text-align: center;
}
nav>ul>li{
	width: 120px;
	height: 45px;
	line-height: 45px;
	margin-right: 22px;
	border-bottom: 4px solid #EDEDED;
}
nav>ul>li:hover{
	border-bottom: 4px solid #25292E;
}
nav>ul>li>a{
	color: #333;
	font-size: 15px;
}
nav>ul>li:first-of-type{
	text-align: left;
	width: 82px;
}

/* 商店子菜单样式 */
.nav-subnav{
	width: 1000px;
	padding-top: 40px;
	background-color: white;
	border-bottom: 1px solid rgb(240, 244, 247);
	position: absolute;
	left: 0;
	top: 49px;
	display: none;
	z-index: 998;
}
/* 商店子菜单显示 */
nav>ul>li:hover .nav-subnav{
	display: block;
}
/* 商店子菜单 左边样式 */
.nav-subnav-left{
	width: 770px;
	float: left;
	display: flex;
	flex-wrap: wrap;
}
.nav-subnav-left>li{
	margin: 0px 60px 40px 0px;
}
.nav-subnav-left>li>a>img{
	width: 40px;
}
.nav-subnav-left>li>a>p{
	color: #333;
	font-size: 14px;
	line-height: 18px;
	font-weight: bold;
}

/* 商店子菜单 右边样式 */
.nav-subnav-right{
	width: 230px;
	float: right;
}
.nav-subnav-right img{
	width: 100%;
}
.nav-subnav-right p{
	font-size: 14px;
	color: #333;
}

/* 杂志子菜单 */
.magazine-list{
	width: 1000px;
	padding-top: 20px;
	padding-bottom: 20px;
	background-color: white;
	border-bottom: 1px solid rgb(240, 244, 247);
	position: absolute;
	left: 0;
	top: 49px;
	display: none;
	z-index: 998;
}
/* 杂志子菜单显示 */
nav>ul>li:hover .magazine-list{
	display: block;
}
/* 杂志子菜单 内容样式 */
.magazine-list ul{
	display: flex;
	justify-content: left;
	flex-wrap: wrap;
}
.magazine-list ul li{
	margin-right: 70px;
}
.magazine-list ul li a{
	font-size: 12px;
	color: #767676;
}


/* 分享子菜单 */
.share-list{
	width: 1000px;
	padding-top: 20px;
	padding-bottom: 20px;
	background-color: white;
	border-bottom: 1px solid rgb(240, 244, 247);
	position: absolute;
	left: 0;
	top: 49px;
	display: none;
	z-index: 998;
}
/* 分享子菜单显示 */
nav>ul>li:hover .share-list{
	display: block;
}
/* 分享子菜单 内容样式 */
.share-list ul{
	display: flex;
	justify-content: left;
	flex-wrap: wrap;
}
.share-list ul li{
	margin-right: 90px;
}
.share-list ul li a{
	font-size: 14px;
	color: #767676;
}



/* 搜索框 */
.search-content{
	flex:1;
	display: flex;
	align-items: center;
	border-bottom: 4px solid #25292E;
	position: relative;
	top: 4px;
}
.search-content input{
	border: none;
	height: 24px;
	/* 去掉聚集的边框 */
	outline: none;
}
.search-content span{
	width: 43px;
	height: 38px;
	background:url(../img/icon.png) no-repeat -157px -147px;
}







/* 底部 */
.server-content{
	background-color: #ffffff;
	border-top: 1px solid #ededed;
}
.bottom-server{
	width: 1000px;
	margin: 0 auto;
	text-align: center;
	padding: 40px 0px 0px 0px;
}
.bottom-server>a{
	color: #666;
	font-size: 14px;
	font-weight: 600;
	line-height: 22px;
}
/* 手指循环运动 */
@keyframes serverhand {
	from{
		left: 0px;
	}
	to{
		left: -20px;
	}
}
.bottom-server>span{
	width: 20px;
	height: 20px;
	font-size: 20px;
	color: #666;
	position: relative;
	top: 2px;
	left: -20px;
	animation: serverhand .5s linear infinite alternate;
}
/* 图片定位 */
.bottom-img{
	width: 1000px;
	margin-top: 40px;
	position: relative;
	background-color: #ffffff;
}
.bottom-img-list{
	width: 250px;
	float: left;
	display: flex;
	justify-content: left;
}
.bottom-img-list .bottom-img1{
	width: 55px;
	height: 62px;
	background: url(../img/icon.png) no-repeat 0 -353px;
}
.bottom-img-list .bottom-img2{
	width: 55px;
	height: 62px;
	background: url(../img/icon.png) no-repeat -153px -219px;
}
.bottom-img-list .bottom-img3{
	width: 55px;
	height: 62px;
	background: url(../img/icon.png) no-repeat -56px -353px;
}
.bottom-img-list .bottom-img4{
	width: 55px;
	height: 62px;
	background: url(../img/icon.png) no-repeat -114px -353px;
}
.bottom-img-list div:last-of-type p:first-of-type{
	text-align: left;
	line-height: 31px;
	margin-left: 10px;
	font-size: 14px;
}
.bottom-img-list div:last-of-type p:last-of-type{
	text-align: left;
	line-height: 31px;
	margin-left: 10px;
	font-size: 12px;
	color: #ccd5e3;
}



/* 返回顶部 */
.back-top{
	width: 59px;
	height: 60px;
	background: url(../img/icon.png) no-repeat -22px -813px;
	position: fixed;
	right: 50px;
	bottom: 50px;
	z-index: 999;
	transition: 0.5s;
	/* 默认隐藏 JS中卷动值达到一定值出现 */
	display: none;
}
.back-top:hover{
	opacity: 0.8;
}

/* 弹出框 */
.alert-msg{
	width: 100%;
	height: 100vh;
	background-color: rgba(0, 0, 0, .7);
	position: fixed;
	left: 0px;
	top: 0px;
	z-index: 1000;
	/* 默认隐藏 */
	display: none;
}
.alert-content{
	width: 600px;
	height: 300px;
	background-color: orange;
	position: absolute;
	left: 50%;
	top: 50%;
	margin: -150px 0px 0px -300px;
}